//
//  CarouselAdvertiseView.h
//  PhotoScrollView
//
//  Created by X and 冷悦 on 16/3/17.
//  Copyright © 2016年 URANUS. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CarouselAdvertiseDelegate <NSObject>

- (void)pageScrollToPresentView:(UIView *)presentView;


@end

@interface CarouselAdvertiseView : UIView

@property (nonatomic, weak) id<CarouselAdvertiseDelegate> delegate;

@property (nonatomic, strong)NSArray *views;

@property (nonatomic, assign)NSTimeInterval timeInterval;

@property (nonatomic, assign)BOOL isAnimation;

@property (nonatomic, assign)BOOL pageEnabled;

/**
 *
 *  更新轮播广告视图内容到指定index位置
 *
 *  @param index 轮播要滚动到view的位置index
 */
- (void)updateCarouselAdvertiseViewContentToCurrentViewIndex:(NSInteger)index;

/**
 *
 *  撤销计时器
 */
- (void)disableTimer;

@end
